package ctrler;

import persistence.Message;
import persistence.Utilisateur;
import i18n.I18nManager;
import tools.DBBundleManager;

/**
 * @author Administrateur
 *
 */
public class Launcher {

	private static I18nManager i18n;

	public Launcher() {
		i18n = new I18nManager();
	}

	private static void init() {
		i18n = new I18nManager();
	}

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		init();
		testPropertiesLoading();
		testDBConnection();
	}

	@SuppressWarnings("static-access")
	private static void testPropertiesLoading(){
		System.out.println(db.getParameter("url"));
		System.out.println(i18n.getCurrentLocale().getDisplayLanguage());
		System.out.println(i18n.getParameter("view.connection.login"));
		i18n.changeLocale("en_UK");
		System.out.println(i18n.getCurrentLocale().getDisplayLanguage());
		System.out.println(i18n.getParameter("view.connection.login"));
	}



}
